package com.matt.domain.statistics;

import com.matt.foundation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/23
 * *******************************
 */
@Data
@Entity
@Table(name = "stat_plan_data")
@EqualsAndHashCode(callSuper = true)
public class StatPlanData extends Domain {

    @Column(columnDefinition = "varchar(32) COMMENT '对应园区 id'")
    private String areaId;

    @Column(columnDefinition = "varchar(32) COMMENT '对应员工 id'")
    private String staffId;

    @Column(columnDefinition = "int COMMENT '类型： 1 托班 2早教 3其他 4主动 5被动 6主动leads接线 7托班续约 8早教续约'")
    private Integer type;

    @Column(columnDefinition = " varchar(32) COMMENT '类型名称' ")
    private String typeVal;

    @Column(columnDefinition = "double default 0 COMMENT '总金额:'")
    private Double amount;

    @Column(columnDefinition = "double default 0 COMMENT '计划金额:'")
    private Double averageAmount;

    @Column(columnDefinition = " datetime COMMENT '生效时间' ")
    private Date date;

    @Column(columnDefinition = " int COMMENT '1金额 2件数 3leads数' ")
    private Integer parentId;

    @Column(columnDefinition = " varchar(32) COMMENT '销售金额/销售件数/leads数' ")
    private String parentVal;


}
